wxSocketClient
Table of Contents


Creation parameters:

  • func socket_connect( atom client, atom address, integer wait )   
  • func wait_on_connect( atom client, integer seconds, integer milliseconds )     
     
    Parent Topics:
  • Classes
  • Networking

    wxSocketClient
    Table of Contents

    [func]
    socket_connect
    ( atom client, atom address, integer wait )

    Category: wxSocketClient

    Connects to a server using the specified address. If wait is TRUE, Connect will wait until the connection completes. Warning: This will block the GUI. If wait is FALSE, Connect will try to establish the connection and return immediately, without blocking the GUI. When used this way, even if Connect returns FALSE, the connection request can be completed later. To detect this, use WaitOnConnect, or catch wxSOCKET_CONNECTION events (for successful establishment) and wxSOCKET_LOST events (for connection failure).

    See Also: wait_on_connect


    wxSocketClient
    Table of Contents

    [func]
    wait_on_connect
    ( atom client, integer seconds, integer milliseconds )

    Category: wxSocketClient

    See Also: socket_connect